package com.han.decorator;

/**
 * @ClassName Garnish
 * @Description 装饰者类——抽象装饰角色
 * @Author duoduo Han
 * @Date 2024/6/6 21:28
 */
public abstract class Garnish extends FastFood {
    //声明快餐类的变量
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
